import java.util.Comparator;

public class PairComparator implements Comparator<Pair>{

	@Override
	public int compare(Pair o1, Pair o2) {
		return (new Float(o2.f).compareTo(new Float(o1.f)));
	}
	
}